<html><head><title>WindowVectorOutput</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">WindowVectorOutput()</font></b></p>
<p><b>Syntax</b></p><blockquote>
VectorOutputID = <font color="#3A3966"><b>WindowVectorOutput</b></font>(#Window [, Unit])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the OutputID of the given window to perform vector drawing operations. It will use 
the PureBasic <a href="../vectordrawing/index.html">VectorDrawing library</a> and can only be used within a <a href="../vectordrawing/startvectordrawing.html">StartVectorDrawing()</a> / 
<a href="../vectordrawing/stopvectordrawing.html">StopVectorDrawing()</a> block. The memory allocated in <a href="windowvectoroutput.html">WindowVectorOutput()</a> is released on <a href="../vectordrawing/stopvectordrawing.html">StopVectorDrawing()</a>. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Window</i></td>
<td width="90%"> 
The window to use. 

</td></tr>
<tr><td><i>Unit (optional)</i></td>
<td> 
Specifies the unit used for measuring distances on the drawing output. 
The default unit for windows is <font color="#924B72">#PB_Unit_Pixel</font>. 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Unit_Pixel</font>     : Values are measured in pixels (or dots in case of a printer)
  <font color="#924B72">#PB_Unit_Point</font>     : Values are measured in points (1/72 inch)
  <font color="#924B72">#PB_Unit_Inch</font>      : Values are measured in inches
  <font color="#924B72">#PB_Unit_Millimeter</font>: Values are measured in millimeters
</font></pre>

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The OutputID of the given window to perform 2D rendering operation on it using <a href="../vectordrawing/startvectordrawing.html">StartVectorDrawing()</a>. 


</blockquote><p><b>Remarks</b></p><blockquote>

Content drawn on a window will be erased whenever the window or a part of it is covered 
by another window, moved outside of the screen or when the window is hidden or minimized. So to keep 
the drawn content visible, it must be redrawn after every <font color="#924B72">#PB_Event_Repaint</font> event. 
A more convenient alternative is to draw the content to an image via <a href="../image/imagevectoroutput.html">ImageVectorOutput()</a> 
and display it as <a href="../gadget/imagegadget.html">ImageGadget()</a> in the application window and if 
necessary, update it with <a href="../gadget/setgadgetstate.html">SetGadgetState()</a>. This way all needed 
refreshing will be handled by the ImageGadget. 


</blockquote><p><b>See Also</b></p><blockquote>

<a href="../vectordrawing/startvectordrawing.html">StartVectorDrawing()</a>, <a href="windowoutput.html">WindowOutput()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=windowoutput.html>WindowOutput()</a> - <a href="index.html">Window Index</a> - <a href="windowwidth.html">WindowWidth()</a> -><br><br>



</body></html>